package com.group_g.hkr;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

@SuppressWarnings("serial")
public class Panel_Shop extends JPanel {

	private Panel_Search searchPanel;
	private Panel_Basket basketPanel;
	private Panel_Products productPanel;
	
	public Panel_Shop() {
		this.setLayout(null);
		searchPanel = new Panel_Search(0, 0, 900, 50);
		basketPanel = new Panel_Basket();
		productPanel = new Panel_Products();
		
		final JScrollPane sp = new JScrollPane(basketPanel.inIt(500, 500));
		sp.setBounds(460, 75, 520, 550);
		final JScrollPane sp1 = new JScrollPane(productPanel.inIt(400, 500));
		sp1.setBounds(10, 75, 420, 550);
		this.add(sp);
		this.add(sp1);
		this.add(searchPanel);

		basketPanel.resizePanel(1500);
		productPanel.resizePanel(1500);
	}
}
